package com.simple.chiralium.upms.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.simple.chiralium.upms.api.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * 系统菜单Mapper
 *
 * @author SimpleZzz
 * @date 2021/12/08 13:49:15
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据角色id查询角色关联的所有菜单
     *
     * @param roleId 角色id
     * @return {@link Set}<{@link SysMenu}>
     */
    Set<SysMenu> listMenusByRoleId(@Param("roleId") Long roleId);
}
